package com.semac.client.componentes.semactable;

import com.google.gwt.event.shared.GwtEvent;
import com.semac.shared.model.SemanaAcademica;

public class SemanaAcademicaSelectionEvent extends GwtEvent<SemanaAcademicaSelectionEventHandler> {
	private SemanaAcademica semana;

	public static Type<SemanaAcademicaSelectionEventHandler> TYPE = new Type<SemanaAcademicaSelectionEventHandler>();
	
	public SemanaAcademicaSelectionEvent(SemanaAcademica semana) {
		this.semana = semana;
	}
	
	@Override
	public Type<SemanaAcademicaSelectionEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(SemanaAcademicaSelectionEventHandler handler) {
		handler.onSemanaAcademicaSelect(this);
	}

	public SemanaAcademica getSemanaAcademica(){
		return this.semana;
	}
	
}
